<template>
  <div>
    <el-search v-bind:value="form" v-on:input="form = arguments[0]">
      <el-input label="haha" key="name" :value="form.name"></el-input>
      <el-select label="xixi" key="sex" :value="form.sex"></el-select>
    </el-search>
    {{form.name}}
  </div>
</template>

<script>
// 嵌套型组件用法
export default {
  data () {
    return {
      form: {
        name: 'asdasd',
        sex: 'boy'
      }
    }
  },
  components: {
    elSearch: require('./el-search.vue').default
  },
  methods: {
  }
}
</script>